﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FilmData : MonoBehaviour {
	public int filmNumber;
	UILayer uiLayer;
	// Use this for initialization
	void Start () {
		uiLayer = GameObject.Find("UI").GetComponents<UILayer> () [0];
	}
	
	// Update is called once per frame
	void Update () {
		
	}

	public void OnFilmClick() {
		uiLayer.OnFilmSelected (filmNumber);
	}
}
